home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga GIGA Graphic
/
Amiga GIGA Graphic CDs 1-4 (1994)(Geuther)(Disc 3 of 4)[!].iso
/
rush
/
scripts
/
find_rush
< prev
next >
Wrap
AmigaDOS Script File
|
1993-07-11
|
587b
|
29 lines
.key cmd
.bra {
.ket }
; $VER: find_rush 37.1 (13.4.93)
;
; Bring Rush to the front if running, if not run another copy.
; This script takes one optional argument, the command to run,
; this is needed because status shows the command with the entire
; path.
; If Rush is in you path, just execute "find_rush"
; if not execute "find_path <full_rush_path>"
;
if "{cmd}" eq ""
set command "rush"
else
set command "{cmd}"
endif
status com=$command >env:rushprocess
if "$rushprocess" eq ""
run >nil: <nil: $command
else
break $rushprocess f
endif
delete quiet env:rushprocess